home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global sndname, seclick
- sound stop 1
- set sndname to "@::SOUND:S31.AIF"
- set seclick to "SE01"
- end
-
- on pushbutton
- set ch to clickOn()
- set cname1 to item 1 of the name of cast the castNum of sprite ch
- set cname2 to item 2 of the name of cast the castNum of sprite ch
- repeat while the stillDown
- if rollOver(ch) then
- set the castNum of sprite ch to the number of cast (cname1 & "," & "ON")
- else
- set the castNum of sprite ch to the number of cast (cname1 & "," & cname2)
- end if
- updateStage()
- end repeat
- if rollOver(ch) then
- set the castNum of sprite ch to the number of cast (cname1 & "," & "ON")
- set ret to 1
- else
- set the castNum of sprite ch to the number of cast (cname1 & "," & cname2)
- set ret to 0
- end if
- updateStage()
- return ret
- end
-
- on getphotono nphoto
- if nphoto = (the number of cast "60.PIC" + 1) then
- return the number of cast "01.PIC"
- else
- if nphoto = (the number of cast "01.PIC" - 1) then
- return the number of cast "60.PIC"
- else
- return nphoto
- end if
- end if
- end
-
- on modebutton
- global photomode
- if pushbutton() then
- set ch to clickOn()
- set cname to item 1 of the name of cast the castNum of sprite ch
- puppetSprite(21 - ch, 0)
- set the castNum of sprite (21 - ch) to the number of cast (photomode & ",OFF")
- puppetSprite(ch, 1)
- set the castNum of sprite ch to the number of cast (cname & ",ON")
- updateStage()
- set photomode to cname
- end if
- end
-
- on changephoto nphoto
- set the castNum of sprite 2 to nphoto
- end
-